package com.topisv.tms.entity.lpn;

import java.io.Serializable;
import javax.persistence.*;

import com.topisv.tms.costants.StorageConstants;

import java.util.Date;

/**
 * The persistent class for the box database table.
 * 
 */
@Entity
@Table(name = "Box")
public class Box implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @Id
    private int id;
    
    @Column(name = "box_num")
    private String boxNum;
    
    @Column(name = "box_rule")
    private int boxRule = StorageConstants.BOX_RULE_DEFAULT;
    
    @Column(name = "box_type")
    private int boxType = StorageConstants.BOX_TYPE_DEFAULT;
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "create_time")
    private Date createTime;
    
    @Column(name = "customer_code")
    private String customerCode;
    
    private short high;
    
    @Column(name = "is_floor")
    private int isFloor = StorageConstants.FLOOR_TRUE;
    
    @Column(name = "is_top")
    private int isTop = StorageConstants.TOP_TRUE;
    
    @Column(name = "is_valid")
    private int isValid = StorageConstants.VALID;
    
    private short length;
    
    @Column(name = "lpn_no")
    private String lpnNo;
    
    private String name;
    
    @Column(name = "parent_lpn_no")
    private String parentLpnNo;
    
    private String remark;
    
    private int status = StorageConstants.STATUS_FREE;
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "update_time")
    private Date updateTime = new Date();
    
    @Column(name = "user_id")
    private String userId;
    
    @Column(name = "warehouse_code")
    private String warehouseCode;
    
    private short width;
    
    public Box() {
    }
    
    @Override
    public String toString() {
        return "Box [id=" + id + ", boxNum=" + boxNum + ", boxRule=" + boxRule + ", boxType=" + boxType
            + ", createTime=" + createTime + ", customerCode=" + customerCode + ", high=" + high + ", isFloor="
            + isFloor + ", isTop=" + isTop + ", isValid=" + isValid + ", length=" + length + ", lpnNo=" + lpnNo
            + ", name=" + name + ", parentLpnNo=" + parentLpnNo + ", remark=" + remark + ", status=" + status
            + ", updateTime=" + updateTime + ", userId=" + userId + ", warehouseCode=" + warehouseCode + ", width="
            + width + "]";
    }
    
    public int getId() {
        return this.id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public String getBoxNum() {
        return this.boxNum;
    }
    
    public void setBoxNum(String boxNum) {
        this.boxNum = boxNum;
    }
    
    public int getBoxRule() {
        return this.boxRule;
    }
    
    public void setBoxRule(int boxRule) {
        this.boxRule = boxRule;
    }
    
    public int getBoxType() {
        return this.boxType;
    }
    
    public void setBoxType(int boxType) {
        this.boxType = boxType;
    }
    
    public Date getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public String getCustomerCode() {
        return this.customerCode;
    }
    
    public void setCustomerCode(String customerCode) {
        this.customerCode = customerCode;
    }
    
    public short getHigh() {
        return this.high;
    }
    
    public void setHigh(short high) {
        this.high = high;
    }
    
    public int getIsFloor() {
        return this.isFloor;
    }
    
    public void setIsFloor(int isFloor) {
        this.isFloor = isFloor;
    }
    
    public int getIsTop() {
        return this.isTop;
    }
    
    public void setIsTop(int isTop) {
        this.isTop = isTop;
    }
    
    public int getIsValid() {
        return this.isValid;
    }
    
    public void setIsValid(int isValid) {
        this.isValid = isValid;
    }
    
    public short getLength() {
        return this.length;
    }
    
    public void setLength(short length) {
        this.length = length;
    }
    
    public String getLpnNo() {
        return this.lpnNo;
    }
    
    public void setLpnNo(String lpnNo) {
        this.lpnNo = lpnNo;
    }
    
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getParentLpnNo() {
        return this.parentLpnNo;
    }
    
    public void setParentLpnNo(String parentLpnNo) {
        this.parentLpnNo = parentLpnNo;
    }
    
    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }
    
    public int getStatus() {
        return this.status;
    }
    
    public void setStatus(int status) {
        this.status = status;
    }
    
    public Date getUpdateTime() {
        return this.updateTime;
    }
    
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
    public String getUserId() {
        return this.userId;
    }
    
    public void setUserId(String userId) {
        this.userId = userId;
    }
    
    public String getWarehouseCode() {
        return this.warehouseCode;
    }
    
    public void setWarehouseCode(String warehouseCode) {
        this.warehouseCode = warehouseCode;
    }
    
    public short getWidth() {
        return this.width;
    }
    
    public void setWidth(short width) {
        this.width = width;
    }
    
}